<link href="__PUBLIC__/vendors/bootstrap-daterangepicker/daterangepicker.css" rel="stylesheet">
<script src="__PUBLIC__/vendors/moment/moment.min.js"></script>
<script src="__PUBLIC__/vendors/bootstrap-daterangepicker/daterangepicker.js"></script>
<div class="input-group">
    <input name="[onepicker-name]" id="date-range-picker-[onepicker-name]"
           class="form-control" type="text" placeholder="选择时间" autocomplete="off">
    <div class="input-group-addon"><i class="fa fa-calendar"></i></div>
</div>

<script>

    $('#date-range-picker-[onepicker-name]').daterangepicker({

        "singleDatePicker": true,
        "autoApply": true,
        "startDate": "{$range_start2.[onepicker-name]}",
        "showDropdowns": true,
        "timePicker24Hour" : true,
        "timePicker" : true,
        "locale": {

            "format": "YYYY-MM-DD HH:mm",

            "applyLabel": "确定",
            "cancelLabel": "取消",

            "daysOfWeek": [
                "日",
                "一",
                "二",
                "三",
                "四",
                "五",
                "六"
            ],
            "monthNames": [
                "一月",
                "二月",
                "三月",
                "四月",
                "五月",
                "六月",
                "七月",
                "八月",
                "九月",
                "十月",
                "十一月",
                "十二月"
            ],
            "firstDay": 1
        }
    }, function(start, end, label) {

    });
</script>
